CC		= g++
CFLAGS	= -Wall -O3 -fopenmp
LFLAGS	= -lm

.PHONY: bin
bin: ./bin/nbody

./bin/nbody: main.cpp body.cpp
	$(CC) $(CFLAGS) main.cpp body.cpp -o ./bin/nbody $(LFLAGS)

.PHONY: clean
clean:
	rm ./bin/*

.PHONY: rebuild
rebuild: clean bin

